home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / DiceSource / src / das / error.h < prev    next >
Text File  |  1997-09-09  |  3KB  |  83 lines

  1.  
  2. /*
  3.  *  DAS/ERROR.H
  4.  *
  5.  *    (c)Copyright 1992-1997 Obvious Implementations Corp.  Redistribution and
  6.  *    use is allowed under the terms of the DICE-LICENSE FILE,
  7.  *    DICE-LICENSE.TXT.
  8.  */
  9.  
  10. #define EERROR        0
  11. #define ESOFTWARN   1
  12. #define EWARN        2
  13. #define EVERBOSE    3
  14.  
  15. #define __FATALPT__ 4
  16.  
  17. #define EFATAL        4
  18. #define ESOFT        5
  19.  
  20. #define EF_ERROR    (EERROR    << 12)
  21. #define EF_SOFTWARN (ESOFTWARN    << 12)
  22. #define EF_WARN     (EWARN    << 12)
  23. #define EF_VERBOSE  (EVERBOSE    << 12)
  24. #define EF_FATAL    (EFATAL    << 12)
  25. #define EF_SOFT     (ESOFT    << 12)
  26.  
  27. #define EF_MASK     (0xF000)
  28.  
  29. #define EERROR_NO_INPUT_FILE        (EF_ERROR|1)
  30. #define EFATAL_CANT_OPEN_FILE        (EF_FATAL|2)
  31. #define EFATAL_CANT_SEEK_INPUT        (EF_FATAL|3)
  32. #define EFATAL_NO_MEMORY        (EF_FATAL|4)
  33. #define EFATAL_READ_ERROR        (EF_FATAL|5)
  34. #define EFATAL_CANT_CREATE_FILE     (EF_FATAL|6)
  35. #define EVERB_INTRO1            (EF_VERBOSE|7)
  36. #define EVERB_INTRO2            (EF_VERBOSE|8)
  37. #define EERROR_SYNTAX            (EF_ERROR|9)
  38. #define EERROR_ILLEGAL_LABEL        (EF_ERROR|10)
  39. #define EERROR_EXPECTED_OPERATOR    (EF_ERROR|11)
  40. #define EERROR_EXPECTED_EXP        (EF_ERROR|12)
  41. #define EERROR_BAD_REG_SPEC        (EF_ERROR|13)
  42. #define EERROR_TAKES_NO_OPS        (EF_ERROR|14)
  43. #define ESOFT_BAD_DIRECTIVE        (EF_SOFT|15)
  44. #define EERROR_ILLEGAL_SIZE        (EF_ERROR|16)
  45. #define ESOFTWARN_BAD_OP_SIZE        (EF_SOFTWARN|17)
  46. #define EVERBOSE_REMOVED_BRANCH_NEXT    (EF_VERBOSE|18)
  47. #define ESOFT_BRANCH_OPT        (EF_SOFT|19)
  48. #define ESOFT_BAD_MASK_REG        (EF_SOFT|20)
  49. #define EVERBOSE_BRANCH_BRANCH        (EF_VERBOSE|21)
  50. #define EERROR_BAD_RELOC        (EF_ERROR|22)
  51. #define EFATAL_DUMPSECT_NEG        (EF_FATAL|23)
  52. #define EERROR_BAD_SECTION_DIRECT    (EF_ERROR|24)
  53. #define EERROR_BAD_SECTION_TYPE     (EF_ERROR|25)
  54. #define EERROR_SECTION_NAME_CONFLICT    (EF_ERROR|26)
  55. #define EERROR_NEG_LABEL_OFFSET     (EF_ERROR|27)
  56. #define EERROR_OUTER_DISP_WL        (EF_ERROR|28)
  57. #define EERROR_NO_BRACKET_NO_OD     (EF_ERROR|29)
  58. #define EWARN_68020            ( EF_WARN|30)
  59. #define EERROR_UNDEFINED_LABEL        (EF_ERROR|31)
  60. #define EERROR_EXPECTED_TERMINATING    (EF_ERROR|32)
  61. #define EWARN_GARBAGE            ( EF_WARN|33)
  62. #define EERROR_ILLEGAL_ADDR_MODES    (EF_ERROR|34)
  63. #define EERROR_DIRECTIVE_REQUIRES_LABEL (EF_ERROR|35)
  64. #define EERROR_DIRECT_REQUIRES_SIZE    (EF_ERROR|36)
  65. #define EERROR_EXPECTED_GOT        (EF_ERROR|37)
  66. #define ESOFTWARN_DIRECT_BYTES_MISMATCH (EF_SOFTWARN|38)
  67. #define ESOFT_DEBUG_INTERNAL_ERROR    ( EF_SOFT|39)
  68. #define EERROR_LABEL_MULTIPLY_DEFINED    (EF_ERROR|40)
  69. #define EERROR_UNKNOWN_DIRECTIVE    (EF_ERROR|41)
  70. #define EERROR_LABEL_ADDR_MISMATCH    (EF_ERROR|42)
  71. #define EERROR_ADDR_MISMATCH        (EF_ERROR|43)
  72. #define EERROR_WORD_OFFSET        (EF_ERROR|44)
  73. #define EERROR_BYTE_OFFSET        (EF_ERROR|45)
  74. #define EERROR_7_OFFSET         (EF_ERROR|46)
  75. #define EERROR_8_OFFSET         (EF_ERROR|47)
  76. #define EERROR_15_OFFSET        (EF_ERROR|48)
  77. #define EERROR_SHORT_BRANCH        (EF_ERROR|49)
  78. #define EERROR_BYTE_BRANCH_OFFSET    (EF_ERROR|50)
  79. #define ESOFT_BAD_SRCAB         ( EF_SOFT|51)
  80.  
  81.  
  82.  
  83.